// 知识点1：可以使用strcmp函数比较两个字符指针，若两字符串相等，返回0
/***************************************************************************
 *  @file       main.cpp
 *  @author     MISAYAONE
 *  @date       17  March 2017
 *  @remark     17  March 2017
 ***************************************************************************/

#include "ex16_64.h"
#include <iostream>
#include <list>
#include <string>
#include <vector>
using namespace std;

int main(int argc, char **argv) {
  vector<int> vec1;
  vec1.push_back(1);
  vec1.push_back(2);
  int a = 1;
  cout << a << "出现次数为：" << show_times(vec1, a) << endl;

  vector<double> vec2;
  vec2.push_back(1.2);
  vec2.push_back(2.4);
  double b = 1.2;
  cout << b << "出现次数为：" << show_times(vec2, b) << endl;

  vector<string> vec3;
  vec3.push_back(string("123"));
  vec3.push_back(string("23"));
  string c = "123";
  cout << c << "出现次数为：" << show_times(vec3, c) << endl;

  vector<char *> vec4;
  vec4.push_back("1230");
  vec4.push_back("123");
  char *d = "1230";
  cout << d << "出现次数为：" << show_times<char *>(vec4, "1230")
       << endl;  //这里需要指定说明符

  cin.get();
  return 0;
}